package demo3;

import demo3.student;packagedemo2;
    class Student{
        public Student(){
            System.out.println("调用了无参构造方法");
        }
    }
    public class Example05 {
        public static void main(String[] args) {
            System.out.println("声明对象...");
            student stu = null;//声明对象
            System.out.println("实例对象...");
            stu = new student();//实例化对象
        }
    }

